import {
    bannerlist
} from '../../../request/api'
const state = {
    bannerList: []
}
const getters = {
    getBanner(state) {
        return state.bannerList
    }
}

const mutations = {
    BANNER(state, payload) {
        state.bannerList = payload
    }
}
const actions = {
    getBannerAction({commit}) {
        bannerlist().then((res) => {
            commit('BANNER', res.list)
        })
    }
}


export default {
    state,
    getters,
    mutations,
    actions,
    namespaced: true
}